package com.clw.service;

import com.clw.dataobject.Return;
import com.clw.dataobject.ReturnDetail;
import com.clw.dto.ReturnDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2018-03-01.
 */
public interface ReturnService {
    Page<Return> findPage(String returnNo,  String startTime, String endTime, Pageable pageable);

    Long getSize(String returnNo,  String startTime, String endTime);

    List<ReturnDetail> getDetail(String returnNo);

    Return findOne(Integer id);

    ReturnDTO add(ReturnDTO dto);

    ReturnDTO update(ReturnDTO dto);

    Return del(Return returnManage);

    Return save(Return manage);

    Return review(Return manage);
}
